/**
 *
 * Copyright by Samuel Castro & Joaquim Fonseca, 2011
 * All Rights Reserved
 *
 * NOTES:
 * Please do not redistribute this plugin without my permission
 * Plugin made for private use only
 *
 */
package com.SySammy.sdQuests.QuestMaker;

import org.bukkit.entity.Player;
import org.bukkit.event.player.PlayerKickEvent;
import org.bukkit.event.player.PlayerListener;
import org.bukkit.event.player.PlayerQuitEvent;

public class QuestPlayerListener extends PlayerListener {

    @Override
    public void onPlayerKick(PlayerKickEvent event) {
        Player p = event.getPlayer();
        QuestMethods.RunningQuests.remove(p);
    }

    @Override
    public void onPlayerQuit(PlayerQuitEvent event) {
        Player p = event.getPlayer();
        QuestMethods.RunningQuests.remove(p);
    }
}
